//
//  XGImageManager.h
//  Instagram
//
//  Created by monkey on 2019/4/14.
//  Copyright © 2019 itcast. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface XGImageManager : NSObject

/**
 加载图片

 @param avfile AVFile
 @param placeholderImage 占位图片
 @param imageSize 图片大小
 @param backgroundColor 背景色
 @param isUserIcon 是否是用户头像
 @param completion 完成回调
 */
+ (void)imageForAVFile:(AVFile *)avfile placeholderImage:(UIImage *_Nullable)placeholderImage imageSize:(CGSize)imageSize backgroundColor:(UIColor *)backgroundColor isUserIcon:(BOOL)isUserIcon completion:(void(^)(UIImage *_Nullable image))completion;

+ (void)imageForAVFile:(AVFile *)avfile placeholderImage:(UIImage *_Nullable)placeholderImage imageSize:(CGSize)imageSize completion:(void(^)(UIImage *_Nullable image))completion;
@end

NS_ASSUME_NONNULL_END
